package groovy.sample.userguide.singleton.example1

class Calculator {
	private total = 0
	
	def add(a, b) { 
		total++
		a + b 
	}
	
	def getTotalCalculations() { 
		'Total Calculations: ' + total 
	}
	
	String toString() { 'Calc: ' + hashCode()}
}
